                    <div class="sidebar">
                        <?php if(!empty($plinks)): ?>
                        <div class="box">
                            <h3><?php __("Useful Links for Patients") ?></h3>
                            <div class="inner_box">
                                <ul>
                                    <?php foreach($plinks as $item): ?>
                                    <li><a href="<?php echo $item["Post"]["contact_address"] ?>"><?php echo $item["Post"]["name"] ?></a></li>                                  
                                    <?php endforeach ?>
                                </ul>
                                <a class="more" href=""><?php __("More") ?> &gt;&gt;</a>
                            </div>
                        </div>
                        <?php endif ?>
                        <?php if(!empty($dlinks)): ?>
                        <div class="box">
                            <h3>Useful Links for Doctors</h3>
                            <div class="inner_box">
                                <ul>
                                    <?php foreach($dlinks as $item): ?>
                                    <li><a href="<?php echo $item["Post"]["contact_address"] ?>"><?php echo $item["Post"]["name"] ?></a></li>                                  
                                    <?php endforeach ?>
                                </ul>
                                <a class="more" href="">More &gt;&gt;</a>
                            </div>
                        </div>
                        <?php endif ?>
                        <div class="adv">
                            <small>Advertisement</small>
                            <?php echo $block->display("leftsideAdvertise") ?>
                        </div>
                    </div>